// components/common/record-award-item/index.js
import componentBehavior from '../../../behaviors/component';
import { COMPONENT_OPTIONS, AWARD_STATUS } from '../../../constants/common';

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        awardInfo: {
            type: Object,
            value: {},
        },
    },
    data: {
        AWARD_STATUS,
    },
    methods: {
        handleAward(e) {
            this.triggerEvent('award', this.data.awardInfo);
        },
        handleOrder(e) {
            this.triggerEvent('order', this.data.awardInfo);
        },
    }
})
